package com.chuanke.ckfamily.dao.social.model;
import com.chuanke.ckfamily.dao.base.CkUtil;
import com.weijie.core.extend.FiledName;
import com.weijie.core.extend.IgnoreColumn;
import com.weijie.core.extend.TableName;
import com.weijie.core.model.BaseModel;
import com.weijie.core.util.DateUtils;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@TableName("cf_family_member")
public class FamilyMember extends BaseModel{

	private static final long serialVersionUID = 6600392715976587069L;
	

	// 用户id 主键
	private Long user_id;
	@FiledName("user_id")
	public Long getUser_id(){
		return this.user_id;
	}
	public void setUser_id(Long user_id){
		 this.user_id = user_id;
	}

	// 群id 主键
	private Long family_id;
	@FiledName("family_id")
	public Long getFamily_id(){
		return this.family_id;
	}
	public void setFamily_id(Long family_id){
		 this.family_id = family_id;
	}

	// 是否被禁言。0：否 1：是
	private Integer mute;
	@FiledName("mute")
	public Integer getMute(){
		return this.mute;
	}
	public void setMute(Integer mute){
		 this.mute = mute;
	}

	// 禁言有效次数
	private Integer mute_num;
	@FiledName("mute_num")
	public Integer getMute_num(){
		return this.mute_num;
	}
	public void setMute_num(Integer mute_num){
		 this.mute_num = mute_num;
	}

	// 禁言有效最后时间
	private Timestamp mute_time;
	@FiledName("mute_time")
	public Timestamp getMute_time(){
		return this.mute_time;
	}
	public void setMute_time(Timestamp mute_time){
		 this.mute_time = mute_time;
	}

	// 昵称
	private String nick_name;
	@FiledName("nick_name")
	public String getNick_name(){
		return this.nick_name;
	}
	public void setNick_name(String nick_name){
		 this.nick_name = nick_name;
	}

	// 当日贡献金额(单位：分)
	private Long devote;
	@FiledName("devote")
	public Long getDevote(){
		return this.devote;
	}
	public void setDevote(Long devote){
		 this.devote = devote;
	}

	// 累计贡献金额(单位：分)
	private Long devote_sum;
	@FiledName("devote_sum")
	public Long getDevote_sum(){
		return this.devote_sum;
	}
	public void setDevote_sum(Long devote_sum){
		 this.devote_sum = devote_sum;
	}
	
	private String devote_sumStr;
	@IgnoreColumn
	public String getDevote_sumStr() {
		return CkUtil.formatMoney(this.devote_sum);
	}

	// 是否被移除群。0：否 1：是
	private Integer is_delete;
	@FiledName("is_delete")
	public Integer getIs_delete(){
		return this.is_delete;
	}
	public void setIs_delete(Integer is_delete){
		 this.is_delete = is_delete;
	}

	private Timestamp update_time;
	@FiledName("update_time")
	public Timestamp getUpdate_time(){
		return this.update_time;
	}
	public void setUpdate_time(Timestamp update_time){
		 this.update_time = update_time;
	}

	private Timestamp create_time;
	@FiledName("create_time")
	public Timestamp getCreate_time(){
		return this.create_time;
	}
	public void setCreate_time(Timestamp create_time){
		 this.create_time = create_time;
	}
	
	private Timestamp create_timeStr;
	@IgnoreColumn
	public String getCreate_timeStr() {
		if(this.create_time!=null){
			return DateUtils.format(new Date(this.create_time.getTime()),"yyyy-MM-dd");
		}
		return "";
	}
	
	// 是否消息免打扰。0：否 1：是
	private Integer nocall;
	@FiledName("nocall")
	public Integer getNocall() {
		return nocall;
	}
	public void setNocall(Integer nocall) {
		this.nocall = nocall;
	}
	
	//是否读取家族公告0否，1是
	private Integer announcement_read;
	@FiledName("announcement_read")
	public Integer getAnnouncement_read() {
		return announcement_read;
	}
	public void setAnnouncement_read(Integer announcement_read) {
		this.announcement_read = announcement_read;
	}
	//忽略退家族提示时间
	private Timestamp leave_notice;
	@FiledName("leave_notice")
	public Timestamp getLeave_notice() {
		return leave_notice;
	}
	public void setLeave_notice(Timestamp leave_notice) {
		this.leave_notice = leave_notice;
	}
	
	// 忽略家族分享领红包提示时间
	private Timestamp packet_notice;
	@FiledName("packet_notice")
	public Timestamp getPacket_notice() {
		return packet_notice;
	}
	public void setPacket_notice(Timestamp packet_notice) {
		this.packet_notice = packet_notice;
	}
	private String version;
	@FiledName("version")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	// 是否家族屏蔽消息 0：否 1：是
	private Integer shield;
	@FiledName("shield")
	public Integer getShield() {
		return shield;
	}
	public void setShield(Integer shield) {
		this.shield = shield;
	}

	//家族成员离开家族原因
	private Integer deleteType;
	@FiledName("deleteType")
	public Integer getDeleteType() {
		return deleteType;
	}
	public void setDeleteType(Integer deleteType) {
		this.deleteType = deleteType;
	}
	
	
	//清除家族会话时间
	private Timestamp msg_time;
	@FiledName("msg_time")
	public Timestamp getMsg_time() {
		return msg_time;
	}
	public void setMsg_time(Timestamp msg_time) {
		this.msg_time = msg_time;
	}
}